<template>
  <view class="assessIndex">
    <view class="top">
      <span class="resultType"> <img :src="successIcon" /> 评估完成</span>
    </view>
    <view class="tips"
      >健康风险引擎正在出具{{ uName }}的健康风险报告，该报告将在24小时内发送到“健康报告”栏目内，请注意查收。</view
    >
    <view class="uni-btn-v">
      <button @click="goHomePage">回首页</button>
    </view>
  </view>
</template>

<script>
import successIcon from '@/static/icon/success.png';
// import { getIsPhysicalExamination } from '@/api/assessQuestion';
export default {
  components: {
    // 头部参评人员及进度条组件
  },
  data() {
    return {
      uName: '',
      successIcon: successIcon
    };
  },
  onLoad(options) {
    if (options && options.uName) {
      this.uName = options.uName;
    }
    this.assessStart();
  },
  methods: {
    async assessStart() {
      // const { data: isDoneToday } = await getIsPhysicalExamination('fe82324ce9a244e4944caf63133c80f8', 0);
    },
    goHomePage() {
      // uni.navigateTo({
      //   url: '/pages/index/index'
      // });
      uni.reLaunch({
        url: '/pages/index/index'
      });
    }
  }
};
</script>
<style>
.uni-btn-v button {
  border: none !important;
}
button:after {
  border: none !important;
}
</style>
<style lang="scss">
.assessIndex {
  margin: 24rpx;
  margin-bottom: 100rpx;
  background-color: #fff;
  border-radius: 16rpx;
  padding: 64rpx 0;
  .top {
    text-align: center;
    padding: 24rpx;
    padding: 24prx;
    .resultType {
      display: inline-block;
      position: relative;
      padding-left: 72rpx;
      line-height: 56rpx;
      font-size: 48rpx;
      img {
        width: 56rpx;
        height: 56rpx;
        position: absolute;
        top: 0;
        left: 0;
      }
    }
  }
  .tips {
    padding: 24rpx;
    color: rgba(0, 0, 0, 0.55);
    text-align: center;
  }
  .uni-btn-v {
    text-align: center;
    padding: 80rpx 0;
    button {
      width: 400rpx;
      height: 88rpx;
      border: 2rpx solid rgba(0, 0, 0, 0);
      background: linear-gradient(236deg, #fe894d 0%, #ef3931 100%);
      opacity: 1;
      border-radius: 44rpx;
      color: #fff;
      font-size: 36rpx;
    }
  }
}
</style>
